/*
 * AddPersonDialog.h
 *
 *  Created on: 11.04.2010
 *      Author: king
 */

#ifndef ADDPERSONDIALOG_H_
#define ADDPERSONDIALOG_H_

#include "ui_AddPersonDialog.h"
#include "genealogy_tree/PersonType.h"
#include "genealogy_tree/Person.h"

namespace etu {
namespace ui {

using etu::genealogy_tree::Person;
using etu::genealogy_tree::PersonType;

class Node;

class CAddPersonDialog: public QDialog, private Ui::AddPersonDialog
{
   Q_OBJECT

public:
   CAddPersonDialog(QWidget *parent =0);

signals:
     void createNewPerson(Person person , PersonType pType);
     void changeEnableStatus(bool);

private slots:
    void accept();

    void showDialog(PersonType personType = etu::genealogy_tree::ROOT);

private:

  PersonType m_personType;

};

}
}
#endif /* ADDPERSONDIALOG_H_ */
